<template>
	<view class="tag-warp">
		<text class="wish-tag" :style="{fontSize:size+'rpx'}">{{text}}</text>
	</view>
</template>

<script>
	export default{
		props:{
			text:String,
			size:{
				type:[String,Number],
				default:20
			}
		}
	}
	
</script>

<style scoped>
	.tag-warp{
		font-size:0;
	}
	.wish-tag{
		display: inline-block;
		padding:3rpx 5rpx;
		color:#fff;
		background-color: #DE3640;
		border-radius:5rpx;
		white-space: nowrap;
		line-height: 1;
	}
</style>
